package com.csdn.springbootmybatis.mapper;

import com.csdn.springbootmybatis.mode.Role;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> selectAll();

    Role findById(int id);

    void addPermissions(int id, int[] permissions);
}